<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 示例1 */
        .d1{
            width: 100px;
            height: 100px;
            border: 1px solid red;

            /* animation-name: change;
            animation-duration: 3s;
            animation-timing-function: linear;
            animation-delay: 0s;
            animation-iteration-count: infinite;
            animation-direction: alternate; */

            /* animation: change 3s linear 1s infinite alternate; */
        }

        @keyframes change {
            0%{
                width: 100px;
                height: 100px;
            }
            50%{
                width: 200px;
                height: 200px;
            }
            100%{
                width: 300px;
                height: 300px;
            }
        }

        /* 示例2 */
        .container{
            width: 1000px;
            height: 600px;
            border: 1px solid #ccc;
            position: relative;
        }
        .d2{
            width: 100px;
            height: 100px;
            border: 1px solid pink;
            position: absolute;

            animation: go 8s  linear 0s infinite alternate;
        }

        @keyframes go {
            0%{
                background: red;
                left: 0px;
                top: 0px;
            }
            25%{
                background: blue;
                left: 900px;
                top: 0px;
            }
            50%{
                background-color: yellow;
                left: 900px;
                top: 500px;
            }
            75%{
                background: green;
                left: 0;
                top: 500px;
            }
            100%{
                background: red;
                left: 0;
                top: 0;
                transform: rotate(5000deg);
            }
        }

        img{
            width: 100px;
            height: 100px;
            animation: imgRorate 2s linear 0s infinite;       
        }
        @keyframes imgRorate {
            100%{
                transform: rotate(360deg);
            }
        }
    </style>
</head>
<body>
    <!-- <div class="d1"></div> -->

    <div class="container">
        <div class="d2"></div>
    </div>

    <img src="../day02/images/tiger.png" alt="">
</body>
</html>